vulkan: fix a clip handling problem
authorMatthias Clasen <mclasen@redhat.com>
Fri, 22 Sep 2017 22:48:36 +0000 (18:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Sep 2017 02:16:10 +0000 (22:16 -0400)
We were looking at uninitialized memory here, instead
of the type of the source clip, as we should.

This showed up as mispositioned clip in the first frame
of a crossfade stack transition, and also as overdraw in
sliding stack transitions.

gsk/gskvulkanclip.c

index 9a3ad8696f95cefa13552a71d3035d966b8beea6..e7696e6abfabd40d29fe3d483a63565654e2ddee 100644 (file)
@@ -133,7 +133,7 @@ gsk_vulkan_clip_transform (GskVulkanClip           *dest,
                            const graphene_matrix_t *transform,
                            const graphene_rect_t   *viewport)
 {
-  switch (dest->type)
+  switch (src->type)
     {
     default:
       g_assert_not_reached();